import 'package:flutter/material.dart';
import 'package:testlzhu/utils/index.dart';

class CeilingHeaderDelegate extends SliverPersistentHeaderDelegate {


  final  TabBar  child;

  CeilingHeaderDelegate({required this.child});

  @override
  Widget build(BuildContext context, double shrinkOffset, bool overlapsContent) {
    return Container(child: child,color: Colors.white,);
  }

  @override
  double get maxExtent => 50;

  @override
  double get minExtent => 0;

  @override
  bool shouldRebuild(covariant SliverPersistentHeaderDelegate oldDelegate) {
    return true;
  }
}
